home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _F25828E6E3DB46849D594EE1EC4C9188 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.4 KB  |  55 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R2xx / NVidia NV2X (PS.1.X and above)
  9.  
  10. // Specular (masked by gloss map in alpha channel of diffuse texture) and diffuse bump-mapping
  11. // For high-poly geometry (without normalization cube-maps)
  12. // One pass for single light source (one pass for each additional LS)
  13.  
  14. // Supports:
  15. // 1. Dot3 light maps
  16. // 2. Simple light maps
  17. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  18. // 4. Stencil shadows
  19. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  20. // 6. Optimised separate techniques for Single/Multiple light sources
  21. // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
  22. // 8. Env. real-time radiosity
  23.  
  24. /*Shader 'TemplBumpSpec_HP_GlossAlpha'
  25. (
  26.   Params
  27.   (
  28.     Sort = Opaque
  29.   )
  30.   
  31.   #include "BumpSpecular_HP_GlossAlpha.csi"    
  32. )*/
  33.  
  34. Shader 'TemplBumpSpec_HP_GlossAlpha'
  35. (
  36.   Params
  37.   (
  38.     Sort = Opaque
  39.   )
  40.   
  41.   #define %DIFFUSE 0x1
  42.   #define %SPECULAR 0x2
  43.   #define %DIFFUSEALPHA 0x4000
  44.   #define %GLOSS_DIFFUSEALPHA 0x20
  45.   #define %BUMP_MAP 0x1000
  46.   
  47.   #include "IllumTemplate.csi"
  48.   
  49.   #undefine %BUMP_MAP
  50.   #undefine %GLOSS_DIFFUSEALPHA
  51.   #undefine %DIFFUSEALPHA
  52.   #undefine %SPECULAR
  53.   #undefine %DIFFUSE
  54. )
  55.